<%@page import="java.util.ArrayList"%>
<%@page import="br.ufc.persistencia.model.Municipio"%>
<%@page import="java.util.List"%>
<%@page import="br.ufc.persistencia.repositorios.RepositorioMunicipio"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Jogo Limpo</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="https://maps.google.com/maps/api/js?sensor=true">
	
</script>
<script type="text/javascript">
	function initialize() {
		var latlng = new google.maps.LatLng(50, 65, 13);
		var myOptions = {
			zoom : 8,
			center : latlng,
			mapTypeId : google.maps.MapTypeId.ROADMAP
		};
		var map = new google.maps.Map(document.getElementById("map_canvas"),
				myOptions);
		map.setMapType(G_SATELLITE_MAP);
	}
	
</script>
<%
	RepositorioMunicipio repMunicipio = new RepositorioMunicipio();
	List<Municipio> lista = new ArrayList<Municipio>();
	lista = repMunicipio.listarTodosMunicipios();
%>
</head>
<body onload="initialize()">

	<form action="Central" >
		<div id="banner">
			<img alt="" src="img/jogolimpo.png" style="width: 1518px;	height: 130px;">		
		</div>
		<div id="topo">
			<%@include file="../menu.jsp"%>
		</div>
		<div id="centro">
		<div id="esq">
			<ul id="inic">
				<%
					for (Municipio cidade : lista) {
				%>
				<li><a
					href="Central?comando=CmdBuscarMunicipio&codigo=<%=cidade.getCodigo_municipio()%>"><%=cidade.getNome_municipio()%></a>
				</li>
				<%
					}
				%>
			</ul>

		</div>
		<%@include file="../divDir.jsp"%>
		</div>
	</form>
</body>
</html>